package com.fate.feign.hystrix;

import com.fate.domain.UserAddr;
import com.fate.feign.OrderMemberFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class OrderMemberFeignHystrix implements OrderMemberFeign {
    /**
     * 获取用户的默认收货地址
     * @param userId
     * @return
     */
    @Override
    public UserAddr getUserDefaultAddr(String userId) {
        log.error("远程调用获取用户的默认收货地址,用户id为{}",userId);
        return null;
    }
}
